package com.hanzidong.cms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hanzidong.cms.dao.ChannelMapper;
import com.hanzidong.cms.entity.Category;
import com.hanzidong.cms.entity.Channel;
import com.hanzidong.cms.service.ChannelService;

@Service
public class ChannelServiceImpl implements ChannelService {
	
	@Resource
	private ChannelMapper channelMapper;

	@Override
	public List<Channel> getChannels() {
		return channelMapper.getChannels();
	}

	@Override
	public List<Category> getCategoriesByChannelId(Integer channelId) {
		return channelMapper.getCategoriesByChannelId(channelId);
	}
}
